﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Nx.Clients.Http
{
    public interface IWebApiClient : IDisposable
    {
        Task<T> GetAsync<T>();
        Task<T> GetAsync<T>(string queryString);
        Task<IEnumerable<T>> GetCollectionAsync<T>();
        Task<IEnumerable<T>> GetCollectionAsync<T>(string queryString);
        Task<bool> TryPostAsync<T>(T dto);
        Task<T> PostAsync<T>(T dto) where T : class;
    }
}
